package org.example.compent;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.annotation.LiteflowMethod;
import com.yomahub.liteflow.core.NodeComponent;
import com.yomahub.liteflow.enums.LiteFlowMethodEnum;
import com.yomahub.liteflow.enums.NodeTypeEnum;
import com.yomahub.liteflow.slot.DefaultContext;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;

@Slf4j
@LiteflowComponent
public class FCmp {

    @LiteflowMethod(value = LiteFlowMethodEnum.PROCESS, nodeId = "f", nodeType = NodeTypeEnum.COMMON)
    public void processBoolean(@NotNull NodeComponent component) throws Exception {
        DefaultContext contextBean = component.getContextBean(DefaultContext.class);
        log.info("------F结点---------");
    }
}
